package com.baturu.mybatisminus.injector.entity;

import com.baturu.mybatisminus.annotation.Column;
import com.baturu.mybatisminus.annotation.Id;
import com.baturu.mybatisminus.annotation.Table;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author huangbin
 */
@Data
@Table("t_customer")
public class Customer {

    @Id
    private Integer customerId;

    private String userName;

    @Column(value = "encryptedPwd", emptyStringAsNull = true)
    private String password;

    private String phoneNumber;

    private String address;

    private BigDecimal salary;

    private Integer age;

    private String hobby;

    private int sex;

    private boolean vip;

    private String order;


    @Column(insertable = false, updatable = false)
    private Date createTime;

    @Column(insertable = false, updatable = false)
    private Date updateTime;
}
